﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.Notices
{
    /// <summary>
    /// 开票通知单表
    /// </summary>
    [SugarTable("Invoicingmemo")]
    public class Invoicingmemo:BaseEntity
    {
        /// <summary>
        /// 开票通知单表主键编号
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int InvoicingmemoId { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Documentsnumber { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string BusinessTypeId { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string ClientName { get; set; }
        /// <summary>
        /// 开户行
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Bank { get; set; }
        /// <summary>
        /// 交付邮箱
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Deliverymailbox { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime DocumentsDate { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Operator { get; set; }

        /// <summary>
        /// 蓝字红字
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string BlueandredId { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Account { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Documentstatus { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string RateId { get; set; }
        /// <summary>
        /// 税号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string RateNumber { get; set; }
        /// <summary>
        /// 业务状态
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string BusinessstateId { get; set; }
        /// <summary>
        /// 发票类型
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string InvoiceTypeId { get; set; }
        /// <summary>
        /// 地址电话
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Addresstelephone { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string BeiZ { get; set; }

        /// <summary>
        /// 开票通知单物料编码（外键）
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string ItemBianma { get; set; }
    }
}
